package demo1;

public class Test {
    public static void main(String[] args) {
        CoolBoy coolBoy1 = new CoolBoy();//实例化一个对象
        coolBoy1.setName("zhangsan");
        System.out.println(coolBoy1.getName());
        coolBoy1.singSong();

        /*CoolBoy coolBoy2 = new CoolBoy();//实例化一个对象
        coolBoy2.name = "lisi";
        coolBoy2.singSong();

        CoolBoy coolBoy3 = new CoolBoy();//实例化一个对象
        coolBoy3.singSong();*/
    }
}
